/* 更新菜单选中状态,面包屑状态,tab状态*/
import {breadcrumbList,menuInfo} from '@/store/pinia'
import {getTreeData} from '@/hooks/menu/treeFindPath'
export const handlerMenuInfo = (obj,tab='',breadcrumb='',name='',path='') => {
    if(!Object.values(obj).length) return
    console.log(obj);
    breadcrumbList().updateBreadcrumbList(obj,'add')
    menuInfo().updateMenuName(obj.index);
    menuInfo().updatePath(obj.path);
    breadcrumbList().updateFilterData(getTreeData(menuInfo().list,obj.index))
}